package com.example.service.webhook.business.email.api;

import com.example.service.webhook.business.email.dto.EmailBillInstallmentList;
import com.example.service.webhook.business.email.dto.EmailBillList;
import com.example.service.webhook.business.email.dto.EmailBillShoppingSheetList;

import retrofit2.Call;
import retrofit2.http.*;

public interface EmailApi {
    @GET("/email/v1/bills")
    Call<EmailBillList> getBillsByEmailId(@Query("email_id") String emailId);

//    @GET("/email/v1/bills/{id}")
//    Call<CreditBillQueryRsp> getBillById(@Path("id") String billId);

    @GET("/email/v1/bills/{id}/expense-records")
    Call<EmailBillShoppingSheetList> getBillShoppingSheets(@Path("id") String billId,@Query("page") Integer page,@Query("size") Integer size);
    
    @GET("/email/v1/bills/{id}/installment-records")
    Call<EmailBillInstallmentList> getBillInstallments(@Path("id") String billId,@Query("page") Integer page,@Query("size") Integer size);

}
